#include "scenelistmodel.h"

SceneListModel::SceneListModel(QObject *parent) : QObject(parent) {
    m_StandardModel = new QStandardItemModel(this);
    m_StandardModel->setHorizontalHeaderItem(0, new QStandardItem("Scene Inspector"));
    m_RootItem = m_StandardModel->invisibleRootItem();
    m_SceneNode = new QStandardItem("Scene3D [Root]");
    m_RootItem->appendRow(m_SceneNode);
}

SceneListModel::~SceneListModel() {

}

QStandardItemModel * SceneListModel::getItemModel() {
    return m_StandardModel;
}

void SceneListModel::addItem(const QString & item) {
    m_SceneNode->appendRow(new QStandardItem(item));
}
